define(function  (require, exports, module) {
    require("../../../../database/registerData");
    function frontInfoList() {
        var info = "";
        var accountData = Message.accountData;
        for(var i=0;i<accountData.length;i++){
            var infoClass = JSON.stringify(accountData[i].class);
            var infoId = JSON.stringify(accountData[i].id);
            var rightId = JSON.stringify(accountData[i].rightId);
            var rightClass = JSON.stringify(accountData[i].rightClass);
            var errorId = JSON.stringify(accountData[i].errorId);
            var errorClass = JSON.stringify(accountData[i].errorClass);
            if(i !== 4 ){
                info += "<div class='input-cont'>" +
                    "<p class="+infoClass+"><a class='start'>"+accountData[i].star+"</a>" + accountData[i].message+ "</p>" +
                    "<input class='entry-info' id="+infoId+" value=''>";
                info += "<div class="+rightClass+" id="+rightId+">" +
                    "<p>"+accountData[i].rightInfo+"</p>" + "</div>";
                info += "<div class="+errorClass+" id="+errorId+">" +
                    "<p>"+accountData[i].errorInfo+"</p>" + "</div></div>";
            }else{
                info += "<div class='input-cont'>" +
                    "<p class="+infoClass+"><a class='start'>＊</a>" + accountData[i].message+ "</p>" +
                    "<input class='phone-check-code' placeholder='短信验证码'>" +
                    "<input id='btnSendCode' type='button' value='获取短信验证码'>" +
                    "</div>"
            }

        }
        $.template("infoLinkTemplate",info);
        $.tmpl("infoLinkTemplate", info).appendTo("#contactInfoId");

    }
    module.exports = frontInfoList();
})